package cn.kilo.infrastructure.persistent.support;

import java.time.Instant;
import java.time.temporal.ChronoUnit;

/**
 * @author kilok
 */
public class TimeUtil {

    public static String getDayTime(){
        return String.valueOf(Instant.now().truncatedTo(ChronoUnit.DAYS)).substring(0,10);
    }

    public static void main(String[] args) {
        System.out.println(getDayTime().substring(0,7));
    }
}
